﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace Kimd.Common
{
    public class AssemblyHelper : SingletonProvider<AssemblyHelper>
    {
        public PropertyInfo[] GetPropertyInfoArray(Type stepType)
        {
            PropertyInfo[] props = null;
            try
            {
                Type type = stepType;
                object obj = Activator.CreateInstance(type);
                props = type.GetProperties(BindingFlags.Public | BindingFlags.Instance);
            }
            catch (Exception ex)
            { }
            return props;
        }
    }
}
